PowerTCP FTP for .NET
Write(Byte[],Int32,Int32) Method



Byte array of data to send.
The position in the data buffer at which to begin sending data.
The number of bytes to send.
Sends data to the remote host.
Syntax
Public Overloads Function Write( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) As Data
Dim instance As TcpBase
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim value As Data
 
value = instance.Write(buffer, offset, count)
public Data Write( 
   byte[] buffer,
   int offset,
   int count
)
public:
Data^ Write( 
   array<byte>^ buffer,
   int offset,
   int count
) 

Parameters

buffer
Byte array of data to send.
offset
The position in the data buffer at which to begin sending data.
count
The number of bytes to send.

Return Value

A Data object encapsulating the sent data. Returns null if the socket is closed.
Remarks
This method synchronously sends data to the remote host over an existing connection. It will block until a buffer is available to accept the data or SocketOption.SendTimeout has expired.
See Also

Reference

TcpBase Class
TcpBase Members
Overload List


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic